Skip to content

Tests: Use .copy() to prevent mutation of shared module-level test data#1535

Draft
theresnotime wants to merge 1 commit into
masterfrom
T352896-fix
Draft

Tests: Use .copy() to prevent mutation of shared module-level test data#1535
theresnotime wants to merge 1 commit into
masterfrom
T352896-fix

Conversation

@theresnotime

@theresnotime theresnotime commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

WIP:

My thinking so far is when tests run in a certain order (especially with --parallel), the email-related tests would mutate FAKE_IDENTITY["email"] to None or "" before test_create_user_and_editor ran, causing its assertEqual(user.email, "alice@example.com") assertion to fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant